<template>
  <div class="card-title">
    <span>
      <slot name="title"></slot>
    </span>
  </div>

</template>

<style scoped>
.card-title {
  height: 40px;
  font-size: 18px;
  font-weight: bold;
  box-sizing: border-box;
  border-bottom: 1px solid #ccc;
}
.card-title span {
  height: 100%;
  position: relative;
  display: inline-block;
  padding: 5px 0;
}
.card-title span::after {
  content: "";
  height: 3px;
  width: 100%;
  background-color: #58b1f5;
  position: absolute;
  left: 0;
  bottom: -1px;
}
</style>
